<?php 
echo $this->Html->script('jquery.bxSlider.min');
if(count($advertises) > 0) { ?>
<div id="slideShow" class="box border5">	
	<ul id="slider-ul">
		<?php foreach($advertises as $item) : ?>
			<li>				
				<?php 
					echo $html->image( IMG_URL .'banner/'. $item['Picture']['image_link'], 
							array( 
								'style'     => 'width:661px; height:370px',
								'align'		=> 'center'
						)
					);
				?>
			</li>
		<?php endforeach; ?>
	</ul>	
</div>
<?php } ?>

<script type="text/javascript">
	$(window).load(function() {
	$('#slider-ul').nivoSlider({
		animSpeed:800, // Slide transition speed
		pauseTime:4000,
		controlNav:false,
		keyboardNav:false,
		prevText: '', // Prev directionNav text
		nextText: '', // Next directionNav text,
		effect:'fold,fade,sliceDown sliceDown,sliceDownLeft,sliceUp,sliceUpLeft,sliceUpDown,sliceUpDownLeft'
	});
	});
</script>